package com.ophiux.micro.core.infrastructure;

import java.util.UUID;


/**
 * 业务表ID生产工厂
 * @author chenh
 *
 */
public class TbableUniqueIDFactory extends UniqueIDFactory {

	private static TbableUniqueIDFactory TbableUniqueIDFactory;
	
	
	public static TbableUniqueIDFactory instance() {
		if(TbableUniqueIDFactory == null) {
			TbableUniqueIDFactory = new TbableUniqueIDFactory();
		}
		return TbableUniqueIDFactory;
	}
	
	@Override
	public String createUniqueID(String... params) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public String createUniqueID(String table_key) {
		//return RedisComponent.getTableNextSeq(table_key) + "";
		return UUID.randomUUID().toString().replaceAll("-", "");
	}

	
}
